package com.yhao.stock.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 板块信息
 * </p>
 *
 * @author yhao
 * @since 2023-11-13
 */
@ApiModel(value="PlateInfo对象", description="板块信息")
@NoArgsConstructor
@AllArgsConstructor
public class PlateInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "板块名称")
    private String plateName;

    @ApiModelProperty(value = "涨跌幅")
    private BigDecimal rfa;

    @ApiModelProperty(value = "总成交量(万手)")
    private BigDecimal totalHand;

    @ApiModelProperty(value = "总成交额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "净流入(亿元)")
    private BigDecimal inFlow;

    @ApiModelProperty(value = "上涨家数")
    private Integer riseCount;

    @ApiModelProperty(value = "下跌家数")
    private Integer fallCount;

    @ApiModelProperty(value = "均价")
    private BigDecimal avgPrice;

    @ApiModelProperty(value = "领涨股")
    private String leaderStock;

    @ApiModelProperty(value = "最新价格")
    private BigDecimal newPrice;

    @ApiModelProperty(value = "领涨股涨幅")
    private BigDecimal stockRfa;

    @ApiModelProperty(value = "交易日期")
    private String dDate;

    @ApiModelProperty(value = "统计时间")
    private LocalDateTime statTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getPlateName() {
        return plateName;
    }

    public void setPlateName(String plateName) {
        this.plateName = plateName;
    }
    public BigDecimal getRfa() {
        return rfa;
    }

    public void setRfa(BigDecimal rfa) {
        this.rfa = rfa;
    }
    public BigDecimal getTotalHand() {
        return totalHand;
    }

    public void setTotalHand(BigDecimal totalHand) {
        this.totalHand = totalHand;
    }
    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }
    public BigDecimal getInFlow() {
        return inFlow;
    }

    public void setInFlow(BigDecimal inFlow) {
        this.inFlow = inFlow;
    }
    public Integer getRiseCount() {
        return riseCount;
    }

    public void setRiseCount(Integer riseCount) {
        this.riseCount = riseCount;
    }
    public Integer getFallCount() {
        return fallCount;
    }

    public void setFallCount(Integer fallCount) {
        this.fallCount = fallCount;
    }
    public BigDecimal getAvgPrice() {
        return avgPrice;
    }

    public void setAvgPrice(BigDecimal avgPrice) {
        this.avgPrice = avgPrice;
    }
    public String getLeaderStock() {
        return leaderStock;
    }

    public void setLeaderStock(String leaderStock) {
        this.leaderStock = leaderStock;
    }
    public BigDecimal getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(BigDecimal newPrice) {
        this.newPrice = newPrice;
    }
    public BigDecimal getStockRfa() {
        return stockRfa;
    }

    public void setStockRfa(BigDecimal stockRfa) {
        this.stockRfa = stockRfa;
    }
    public String getdDate() {
        return dDate;
    }

    public void setdDate(String dDate) {
        this.dDate = dDate;
    }
    public LocalDateTime getStatTime() {
        return statTime;
    }

    public void setStatTime(LocalDateTime statTime) {
        this.statTime = statTime;
    }

    @Override
    public String toString() {
        return "PlateInfo{" +
        "id=" + id +
        ", plateName=" + plateName +
        ", rfa=" + rfa +
        ", totalHand=" + totalHand +
        ", totalAmount=" + totalAmount +
        ", inFlow=" + inFlow +
        ", riseCount=" + riseCount +
        ", fallCount=" + fallCount +
        ", avgPrice=" + avgPrice +
        ", leaderStock=" + leaderStock +
        ", newPrice=" + newPrice +
        ", stockRfa=" + stockRfa +
        ", dDate=" + dDate +
        ", statTime=" + statTime +
        "}";
    }

    public PlateInfo(String plateName, BigDecimal rfa, BigDecimal totalHand, BigDecimal totalAmount, BigDecimal inFlow, Integer riseCount, Integer fallCount, BigDecimal avgPrice, String leaderStock, BigDecimal newPrice, BigDecimal stockRfa, String dDate, LocalDateTime statTime) {
        this.plateName = plateName;
        this.rfa = rfa;
        this.totalHand = totalHand;
        this.totalAmount = totalAmount;
        this.inFlow = inFlow;
        this.riseCount = riseCount;
        this.fallCount = fallCount;
        this.avgPrice = avgPrice;
        this.leaderStock = leaderStock;
        this.newPrice = newPrice;
        this.stockRfa = stockRfa;
        this.dDate = dDate;
        this.statTime = statTime;
    }
}
